package com.yang.cycle;

public class Car {
    private String brand;

    public void setBrand(String brand) {
        this.brand = brand;
        System.out.println("Car的Set方法");
    }

    public Car() {
        System.out.println("Car的构造方法");
    }
    public void init(){
        System.out.println("Car的初始化方法");
    }
    public void destroy(){
        System.out.println("Car的销毁方法");
    }

    @Override
    public String toString() {
        return "Car{" +
                "brand='" + brand + '\'' +
                '}';
    }
}
